[gd_scene load_steps=11 format=2]

[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://src/scenes/media_list_item/media_list_item.gd" type="Script" id=2]
[ext_resource path="res://src/scenes/button_container/button_container.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/scenes/channel_card/channel_card.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/scenes/image_loader/spinner.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/utils/shaders/rounded_corners.gdshader" type="Shader" id=6]

[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.6, 0.6, 0.6, 0 )
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color( 0, 0, 0, 1 )
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5

[sub_resource type="StyleBoxFlat" id=2]
content_margin_left = 5.0
content_margin_right = 5.0
content_margin_top = 5.0
content_margin_bottom = 5.0
bg_color = Color( 0.235294, 0.235294, 0.27451, 1 )
corner_radius_top_left = 5
corner_radius_top_right = 5

[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 6 )
shader_param/curve = 50.0

[sub_resource type="StyleBoxFlat" id=4]
content_margin_left = 5.0
content_margin_right = 5.0
content_margin_top = 5.0
content_margin_bottom = 5.0
bg_color = Color( 0.235294, 0.235294, 0.27451, 1 )
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5

[node name="MediaListItem" type="PanelContainer"]
margin_right = 189.0
margin_bottom = 307.0
rect_min_size = Vector2( 50, 50 )
custom_styles/panel = SubResource( 1 )
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
ChannelCard_scene = ExtResource( 4 )

[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_left = 2.0
margin_top = 2.0
margin_right = 187.0
margin_bottom = 305.0
custom_constants/separation = 0

[node name="MediaContainer" parent="VBoxContainer" instance=ExtResource( 3 )]
margin_right = 185.0
margin_bottom = 243.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_styles/panel = SubResource( 2 )
color_normal = Color( 0.235294, 0.235294, 0.27451, 1 )
color_hovered = Color( 0.313726, 0.313726, 0.352941, 1 )
color_pressed = Color( 0.196078, 0.196078, 0.235294, 1 )

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/MediaContainer"]
margin_left = 5.0
margin_top = 5.0
margin_right = 180.0
margin_bottom = 238.0

[node name="MediaThumbnail" type="TextureRect" parent="VBoxContainer/MediaContainer/VBoxContainer"]
visible = false
material = SubResource( 3 )
margin_right = 175.0
margin_bottom = 90.0
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 2.0
texture = ExtResource( 1 )
expand = true
stretch_mode = 6

[node name="ThumbnailSpinner" parent="VBoxContainer/MediaContainer/VBoxContainer" instance=ExtResource( 5 )]
margin_right = 175.0
margin_bottom = 152.0
mouse_filter = 1
size_flags_stretch_ratio = 2.0

[node name="Title" type="Label" parent="VBoxContainer/MediaContainer/VBoxContainer"]
margin_top = 156.0
margin_right = 175.0
margin_bottom = 233.0
mouse_filter = 1
size_flags_horizontal = 5
size_flags_vertical = 7
text = "Item"
align = 1
valign = 1
autowrap = true
clip_text = true

[node name="ChannelContainer" parent="VBoxContainer" instance=ExtResource( 3 )]
margin_top = 243.0
margin_right = 185.0
margin_bottom = 303.0
size_flags_horizontal = 3
custom_styles/panel = SubResource( 4 )
color_normal = Color( 0.235294, 0.235294, 0.27451, 1 )
color_hovered = Color( 0.313726, 0.313726, 0.352941, 1 )
color_pressed = Color( 0.196078, 0.196078, 0.235294, 1 )

[node name="ChannelCard" parent="VBoxContainer/ChannelContainer" instance=ExtResource( 4 )]
margin_left = 5.0
margin_top = 5.0
margin_right = 180.0
margin_bottom = 55.0
